{% extends "projects/base.html" %}

{% load i18n %}
{% load work_package_tags %}

{% block head_title %}Objectives{% endblock %}

{% block tab_id %}id="rtab_objectives"{% endblock %}

{% block body %}
        <div class="right_panel">
            <div class="objectives">
                <h2>{% trans "Work Packages" %}</h2>
                <table width="100%">
		  <tr>
		    <th>Project</th>
		    <th>Code</th>
		    <th>Title</th>
		    <th>Ratng</th>
		  </tr>
                  {% for work_package in object_list.all %}
                     <tr>
		       <td>{{ work_package.project.code }}</td>
		       <td>{{ work_package.code }}</td>
		       <td><a href="{% url work_package_detail object_id=work_package.id %}">{{ work_package.title }}</a></td>
		       <td>{% work_package_status work_package %}</td>
		     </tr>
                  {% endfor %}
                </table>
            </div>
        </div>
{% endblock %}
